﻿<controls:ChildWindow x:Class="LiveS3D.WebcamChooser"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           MinWidth="400"
           >
    <controls:ChildWindow.Title>
        <TextBlock Text="Choose the LEFT eye camera" FontSize="18" />
    </controls:ChildWindow.Title>
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <ComboBox x:Name="WebCams" SelectionChanged="WebCams_SelectionChanged" FontSize="18" Margin="3" DisplayMemberPath="FriendlyName" />
        <Border CornerRadius="12" Background="Black" Grid.Row="1" Margin="3" Width="300" Height="200" HorizontalAlignment="Center">
            <Rectangle x:Name="CamVideo" />
        </Border>
        <Button Content="OK" Click="OKButton_Click" FontSize="18" Grid.Row="2" HorizontalAlignment="Center" MinWidth="100" Margin="3,6,3,0" />
    </Grid>
</controls:ChildWindow>